package cn.kust.apiuser.remote;

import cn.kust.microtourismcommon.pojo.dto.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author WY
 * @data 2022/7/25 16:31
 **/
@FeignClient("service-social")
public interface ServiceSocialClient {
    // 取消关注
    @RequestMapping(value = "/follow/delete/{userid}/{friendid}", method = RequestMethod.DELETE)
    ResponseResult deleteFriend(@PathVariable("userid") String userid, @PathVariable("friendid") String friendid);

    // 添加关注
    @RequestMapping(value = "/follow/add/{userid}/{friendid}", method = RequestMethod.PUT)
    ResponseResult addFriend(@PathVariable("userid") String userid, @PathVariable("friendid") String friendid);

    //根据用户id查询用户的关注列表
    @RequestMapping(value = "/follow/get-follow-list/{userid}", method = RequestMethod.GET)
    ResponseResult getFollowList(@PathVariable("userid") String userid);

    //根据用户id查询用户的粉丝列表
    @RequestMapping(value = "/follow/get-fans-list/{userid}", method = RequestMethod.GET)
    ResponseResult getFansList(@PathVariable("userid") String userid);
}
